function result = SPconversion(sg1,sg2)
result = zeros(1,[]);

for k=0:8
    result(1+k*200:100+k*200) = sg1(1+100*k:100+100*k);
    result(101+k*200:200+k*200) = sg2(1+100*k:100+100*k);
end
result(1801:1899) = sg1(901:999);
result(1900:1998) = sg2(901:999);